package com.example.dao;

import com.example.dto.UserReq;
import com.example.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    User getUserByUsernameAndPasswd(@Param("userName") String userName, @Param("password") String password);

    List<User> selectAllUser(UserReq userReq);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}